/*
 * @Author: fanzhiwei
 * @Date: 2024-08-16 09:35:09
 * @LastEditors: fanzhiwei
 * @LastEditTime: 2024-08-16 11:27:34
 * @FilePath: /common-web-ui/src/plugins/globalDirectives.js
 * @Description: 全局引入自定义指令并挂载
 */
import Vue from "vue";
import hasPermi from "@/directive/hasPermi";
import limitInputNumber from "@/directive/inputOnlyNum";
import notInputNumber from "@/directive/notInputNumber";
// 全局引入角色校验自定义指令并挂载
import hasRole from "@/directive/hasRole";
import "@/directive/drag"; // 拖拽弹窗，在需要用到拖拽功能的弹窗标签上加v-dialogDrag
import dragWidthAccordingToParent from "@/directive/dragWidthAccordingToParent.js";
import dragWidth from "@/directive/dragWidth.js";
import dragMove from "@/directive/dragMove.js";
import dragTimeAxis from "@/directive/dragTimeAxis.js";
import videoRealCompDrag from "@/directive/videoRealCompDrag.js";
import clickOutSideMini from "@/directive/clickOutSideMini";

Vue.directive("hasRole", hasRole);
Vue.directive("hasPermi", hasPermi);
Vue.directive("limitInputNumber", limitInputNumber);
Vue.directive("notInputNumber", notInputNumber);
Vue.directive("dragWidthAccordingToParent", dragWidthAccordingToParent);
Vue.directive("dragWidth", dragWidth);
Vue.directive("dragMove", dragMove);
Vue.directive("dragTimeAxis", dragTimeAxis);
Vue.directive("videoRealCompDrag", videoRealCompDrag);
Vue.directive("clickOutSideMini", clickOutSideMini);
